<include file="Public:header" />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title"  class="col-md-6">
            <h5>转换日志</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->
            <form id='commentForm' role="form" method="get" class="form-inline">
                <div class="content clearfix m-b">
                    <div class="form-group">
                        <label>用户名：</label>
                        <input type="text" class="form-control" id="username" name="username" value="{$Think.get.username}">
                    </div>
                    <div class="form-group">
                        <button class="btn btn-primary" type="submit" style="margin-top:5px" id="search"><strong>搜 索</strong>
                        </button>
                    </div>
                </div>
            </form>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
				<div class="example-wrap">
					<div class="example">
						<div class="bootstrap-table">
							<div class="fixed-table-container" style="height: 641px; padding-bottom: 36px;">
								<div class="fixed-table-header" style="margin-right: 0px;"></div>
								<div class="fixed-table-body">
									<table id="cusTable" data-height="700" class="table table-hover table-striped">
										<thead>
											<th tabindex="0">
												<div class="th-inner ">序号</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">账户</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">转换类型</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">转换金额</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">转换时间</div>
											</th>
											<th tabindex="0">
												<div class="th-inner ">转换备注</div>
											</th>
										</thead>
										<tbody>
											<volist name="list['content']" id="vo" key="k">
												<tr>
													<td>{$k}</td>
														<td>{$vo['user']['username']}</td>
													<td>{$currency[$change_sys[$vo['sys_id']]['currency_id']]['name']}到{$currency[$change_sys[$vo['sys_id']]['to_currency_id']]['name']}</td>
													<td>{$vo['num']}</td>
													<td>{$vo['add_time']|getDateFormat=###}</td>
													<td>{$vo['remark']}</td>
												</tr>
											</volist>
											<tr><td colspan="13">{$list['page']}</td>
											</tr>
										</tbody>
									</table>
								</div>
								<div class="pull-right pagination"></div>
							</div>
						</div>
						<div class="clearfix"></div>
					</div>
				</div>
            <!-- End Example Pagination -->
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
<include file="Public:footer" />
<script type="text/javascript">
    function shopUserDel(id){
        layer.confirm('确认删除此商户账号?', {icon: 3, title:'提示'}, function(index){
            //do something
            $.getJSON("{:U('shopUser/delete')}", {'shopID' : id}, function(res){
                if(res.status == true){
                    layer.alert('删除成功');location.reload(); 
                }else{
                    layer.alert('删除失败');
                }
            }); 
            layer.close(index);
        })

    }
</script>
</body>
</html>